/**
 * Created by Intellij IDEA
 *
 * @author 王俊凯
 * @Date: 2023/3/1 18:35
 * @Version 1.0
 */
package com.eight.controller;

import com.eight.service.impl.CarTypeCountService;
import com.eight.vo.CarTypeVo;
import com.eight.vo.ComResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rent/count")
public class CarTypeCountController {
    @Autowired
    private CarTypeCountService carTypeCountService;

    @RequestMapping("/list")
    public ComResult list(){
        return carTypeCountService.typeCount();
    }

    @RequestMapping("/brand")
    public ComResult brand(){
        return carTypeCountService.carBrand();
    }

    @RequestMapping("/sale")
    public ComResult sale(){
        return carTypeCountService.carSale();
    }
}

